added override option to rest api