period from query, clean up, working availability module