all main methods are seperated from libraries for the unix-tools