adding hireapi class and fixing template