updated write&retrieve for profScript