more functionality and main write mod included