fixed pom and added factory files