bug fixes, including the create resources implemenation