updated the create base functionality with the chmod constant