minor changes, attempting to create API