               this.options.states = [];

                     // add id to options
                     if(id != null){
                         this.options.id = id;
                     }

                     // storage between state functions
                     this.storage = {};

                     // is the last item an object?
                     if( typeof arguments[arguments.length-1] === 'object' ){

                         // if so, it should be the options
                         L.Util.