userstat script working