crude access logic written