remove debug message
refine app factory