added parsing for arguments