added some new APIs.
changed error condition in move routine.