make max more reasonable
add Makefiles