check for standalone mode in save method