fix api content_type handling
improve deploy process