adding new functionality including pys and getProfile