added load funcationalty has bugs