added functions for JSON handling