added dummy functions which are all required
removed states as an objects implementation
not working with spl statename
somewhat working code :P, but with bit of duplicate lines