added port mappings and endpoints