tidy up
added create function to file api