clean old documentation related comments
extracts method for credentials