mod basics added, following tutorial