update mount_as_api logic